Skip to content

chore(orchestrator): remove cleanup of dependencies. Fixes RHIDP-16038 - #4469

Open
lholmquist wants to merge 2 commits into
redhat-developer:mainfrom
lholmquist:RHIDP-16038-remove-unused-deps-orchestrator
Open

chore(orchestrator): remove cleanup of dependencies. Fixes RHIDP-16038#4469
lholmquist wants to merge 2 commits into
redhat-developer:mainfrom
lholmquist:RHIDP-16038-remove-unused-deps-orchestrator

Conversation

@lholmquist

Copy link
Copy Markdown
Member

Summary

Cleans up orchestrator plugin dependency graphs after a fresh knip pass (the checked-in reports were stale). Unused packages are dropped, imports that were already in source are declared, and knip reports are regenerated.

Fixes RHIDP-16038.

  • Remove unused production deps such as leftover scaffolder/catalog packages, express-promise-router, yn, vscode-languageserver-types, and unused MUI/RJSF packages
  • Remove unused/redundant devDependencies (plugin-template leftovers, @types/uuid, @testing-library/dom)
  • Declare previously unlisted imports: @backstage/catalog-model, @backstage/config, @backstage/types, json-schema, @types/express-serve-static-core, @spotify/prettier-config
  • Leave form-react on orchestrator-form-widgets (used by the CustomReviewPage example) and OpenAPI script binaries in orchestrator-common

Test plan

  • yarn tsc in workspaces/orchestrator
  • yarn build:knip-reports for the affected plugins
  • Spot-check yarn test on a couple of touched packages (orchestrator-backend, orchestrator-form-widgets) if CI does not already cover them

Checklist

  • A changeset describing the change and affected packages
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app

rhdh-gh-app Bot commented Aug 25, 2026

Copy link
Copy Markdown

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-backend workspaces/orchestrator/plugins/orchestrator-backend patch v8.13.0
@red-hat-developer-hub/backstage-plugin-orchestrator-common workspaces/orchestrator/plugins/orchestrator-common patch v3.10.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-api workspaces/orchestrator/plugins/orchestrator-form-api patch v2.11.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-react workspaces/orchestrator/plugins/orchestrator-form-react patch v2.12.0
@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets workspaces/orchestrator/plugins/orchestrator-form-widgets patch v2.1.0
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator patch v6.1.0
@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator patch v1.8.0

@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.14%. Comparing base (359b2a5) to head (e9c13f5).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4469   +/-   ##
=======================================
  Coverage   62.14%   62.14%           
=======================================
  Files        2606     2606           
  Lines      104644   104644           
  Branches    29438    29438           
=======================================
  Hits        65033    65033           
  Misses      39019    39019           
  Partials      592      592           
Flag Coverage Δ *Carryforward flag
adoption-insights 84.30% <ø> (ø) Carriedforward from 359b2a5
ai-integrations 76.15% <ø> (ø) Carriedforward from 359b2a5
app-defaults 56.22% <ø> (ø) Carriedforward from 359b2a5
augment 46.67% <ø> (ø) Carriedforward from 359b2a5
boost 80.51% <ø> (ø) Carriedforward from 359b2a5
bulk-import 73.12% <ø> (ø) Carriedforward from 359b2a5
cost-management 13.55% <ø> (ø) Carriedforward from 359b2a5
dcm 73.47% <ø> (ø) Carriedforward from 359b2a5
e2e-adoption-insights 60.00% <ø> (ø) Carriedforward from 359b2a5
e2e-extensions 62.32% <ø> (ø) Carriedforward from 359b2a5
e2e-global-header 50.35% <ø> (ø) Carriedforward from 359b2a5
e2e-homepage 61.11% <ø> (ø) Carriedforward from 359b2a5
e2e-intelligent-assistant 47.04% <ø> (ø) Carriedforward from 359b2a5
e2e-orchestrator 49.52% <ø> (ø) Carriedforward from 359b2a5
e2e-orchestrator-plugin 49.51% <ø> (ø) Carriedforward from 359b2a5
e2e-quickstart 55.21% <ø> (ø) Carriedforward from 359b2a5
e2e-scorecard 50.21% <ø> (ø) Carriedforward from 359b2a5
e2e-theme 16.36% <ø> (ø) Carriedforward from 359b2a5
extensions 56.66% <ø> (ø) Carriedforward from 359b2a5
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 359b2a5
global-header 68.09% <ø> (ø) Carriedforward from 359b2a5
homepage 48.39% <ø> (ø) Carriedforward from 359b2a5
install-dynamic-plugins 58.57% <ø> (ø) Carriedforward from 359b2a5
intelligent-assistant 76.40% <ø> (ø) Carriedforward from 359b2a5
konflux 91.98% <ø> (ø) Carriedforward from 359b2a5
lightspeed 69.02% <ø> (ø) Carriedforward from 359b2a5
mcp-integrations 84.14% <ø> (ø) Carriedforward from 359b2a5
orchestrator 71.13% <ø> (ø)
quickstart 63.74% <ø> (ø) Carriedforward from 359b2a5
sandbox 79.56% <ø> (ø) Carriedforward from 359b2a5
scorecard 87.90% <ø> (ø) Carriedforward from 359b2a5
theme 87.91% <ø> (ø) Carriedforward from 359b2a5
translations 5.12% <ø> (ø) Carriedforward from 359b2a5
x2a 77.10% <ø> (ø) Carriedforward from 359b2a5

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 359b2a5...e9c13f5. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lholmquist
lholmquist force-pushed the RHIDP-16038-remove-unused-deps-orchestrator branch from 7ffd5d6 to 8d88b11 Compare September 2, 2026 13:32
@lholmquist
lholmquist force-pushed the RHIDP-16038-remove-unused-deps-orchestrator branch from 8d88b11 to 3a9cad0 Compare September 2, 2026 14:09
@lholmquist

Copy link
Copy Markdown
Member Author

@lokanandaprabhu there are some packages being removed on the front-end, if you have a chance to take a look to make sure they look reasonable to remove

@sonarqubecloud

sonarqubecloud Bot commented Sep 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants